#ifndef _PIN_MAP_H_
#define _PIN_MAP_H_

// MEAS PIN
#define ADC_CH_VBUS_VOLT            ADC_CHANNEL_0
#define ADC_CH_MT_OUT               ADC_CHANNEL_1
#define ADC_CH_NTC_TEMP             ADC_CHANNEL_2

// POWER CONTROL PIN
#define A_PHASE_VREF_DAC_PIN        DAC_CHAN_0
#define A_PHASE_IN1_PIN             GPIO_NUM_21
#define A_PHASE_IN2_PIN             GPIO_NUM_22
#define B_PHASE_VREF_DAC_PIN        DAC_CHAN_1
#define B_PHASE_IN1_PIN             GPIO_NUM_9
#define B_PHASE_IN2_PIN             GPIO_NUM_10

// CONFIG PIN
#define STEP_PIN                    GPIO_NUM_27
#define DIR_PIN                     GPIO_NUM_14
#define EN_PIN                      GPIO_NUM_12

// SENSOR PIN
#define ENC_SCK_PIN                 GPIO_NUM_18
#define ENC_SDI_PIN                 GPIO_NUM_23
#define ENC_SDO_PIN                 GPIO_NUM_19
#define ENC_CSN_PIN                 GPIO_NUM_5

// LED PIN
#define LED_PIN                     GPIO_NUM_4

#endif // _PIN_MAP_H_

